/*
 * CourseList.cpp
 *
 *  Created on: 1 May 2010
 *      Author: Savramis Sartios
 */

#include "CourseList.h"

CourseList::CourseList(ICourseRegistration *registration,map<string *,string *> *courses) : ACourseRegistrationDecorator(registration) {
	setCourses(courses);
}

CourseList::~CourseList() {
	delete courses_;
}

void CourseList::setCourses(map<string *,string *> * courses){
	if(0!=courses){
		courses_=new map<string *,string *>(*courses);
	}
}

map<string *,string *> * CourseList::getCourses()const{
	return courses_;
}

void CourseList::setOwner(const string * aem){
	ACourseRegistrationDecorator::registration_->setOwner(aem);
}

string * CourseList::getOwner()const{
	return ACourseRegistrationDecorator::registration_->getOwner();
}
